package day1;

public class demo3 {
    private int a=0;
    protected demo3(int temp){
        System.out.println("带一个参数的构造方法");
    }
    public demo3(){
        System.out.println("无参构造方法");
    }
    public static void main(String[] args) {
        demo3 t=new demo3(5);
        System.out.println(t);
    }

    @Override
    public String toString() {
        return "demo3{" +
                "a=" + a +
                '}';
    }
}
